/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.bxsp.sp.entity;

import com.jeeplus.modules.sys.entity.Office;
import com.jeeplus.modules.sys.entity.User;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.ActEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 报修审批Entity
 * @author 陈龙
 * @version 2018-12-10
 */
public class Bxsp extends ActEntity<Bxsp> {
	
	private static final long serialVersionUID = 1L;
	private String procInsId;		// 流程实例id
	private String bxlb;		// 报修类别
	private Office dw;		// 报修单位
	private User ry;		// 报修人员
	private String bxsx;		// 报修事项
	private Date bxsj;		// 报修时间
	
	public Bxsp() {
		super();
	}

	public Bxsp(String id){
		super(id);
	}

	@ExcelField(title="流程实例id", align=2, sort=7)
	public String getProcInsId() {
		return procInsId;
	}

	public void setProcInsId(String procInsId) {
		this.procInsId = procInsId;
	}
	
	@ExcelField(title="报修类别", align=2, sort=8)
	public String getBxlb() {
		return bxlb;
	}

	public void setBxlb(String bxlb) {
		this.bxlb = bxlb;
	}
	
	@ExcelField(title="报修单位", fieldType=Office.class, value="dw.name", align=2, sort=9)
	public Office getDw() {
		return dw;
	}

	public void setDw(Office dw) {
		this.dw = dw;
	}
	
	@ExcelField(title="报修人员", fieldType=User.class, value="ry.name", align=2, sort=10)
	public User getRy() {
		return ry;
	}

	public void setRy(User ry) {
		this.ry = ry;
	}
	
	@ExcelField(title="报修事项", align=2, sort=11)
	public String getBxsx() {
		return bxsx;
	}

	public void setBxsx(String bxsx) {
		this.bxsx = bxsx;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="报修时间", align=2, sort=12)
	public Date getBxsj() {
		return bxsj;
	}

	public void setBxsj(Date bxsj) {
		this.bxsj = bxsj;
	}
	
}